cd /home/gaff_ci/gaff/DataSecuritySolution
git pull >git.log

cd DataSecurityCommon
mvn clean install

cd ../DataSecuritySolution
mvn clean package -DskipTests=true

cd ../DataSecurityGateway
mvn clean package -DskipTests=true

sleep 8
rm -rf /home/gaff_ci/gaff-production/DataSecuritySolution/*
cd /home/gaff_ci/gaff-production/DataSecuritySolution/
mkdir DataSecuritySolution
mkdir DataSecurityGateway
sleep 3

cp -rf /home/gaff_ci/gaff/DataSecuritySolution/DataSecuritySolution/tools /home/gaff_ci/gaff-production/DataSecuritySolution/DataSecuritySolution/
cp /home/gaff_ci/gaff/DataSecuritySolution/DataSecuritySolution/target/DataSecuritySolution-*.jar /home/gaff_ci/gaff-production/DataSecuritySolution/DataSecuritySolution/

cp /home/gaff_ci/gaff/DataSecuritySolution/DataSecurityGateway/target/DSGateway*.jar /home/gaff_ci/gaff-production/DataSecuritySolution/DataSecurityGateway/

#copy
cp -rf /home/gaff_ci/gaff/DataSecuritySolution/DataSecuritySolution/config /home/gaff_ci/gaff-production/DataSecuritySolution/DataSecuritySolution/

cp -rf /home/gaff_ci/gaff/DataSecuritySolution/DataSecurityGateway/config /home/gaff_ci/gaff-production/DataSecuritySolution/DataSecurityGateway/

cp -rf /home/gaff_ci/gaff/DataSecuritySolution/DataSecurityGateway/target/lib /home/gaff_ci/gaff-production/DataSecuritySolution/DataSecurityGateway/
